Photoreactions on the nucleus and on the nucleon with polarized photons