Commissioning of a high-brightness photoinjector for compton scattering x-ray sources