refs #687 @0.5
 * some refactoring of factories
 * added foreigner gem and changed constraints migrations