fixes #3752 - move data population from migrations into seed script
Fixes #3293 add FactoryGirl to tests
fixes #2602 - scoped_search error when using postgresql
refs #2400 clean up tests so there are no orphaned foreign keys
set apiadmin user in headers before api controller tests
This commit adds most of the functionality required for API v1
The overall goal was to extract the existing JSON responseoverall controllers, and to move them to a seperate name space.
api v1 - config templates