Integrate FactoryGirl and add factories for email & metadata models.
Cleanup from trailing whitespaces.