CFHTLenS: testing the laws of gravity with tomographic weak lensing and redshift-space distortions