CFHTLenS: mapping the large-scale structure with gravitational lensing