Allow sign_in to be used in tests; Added factories (can be used by main app); Cleaned up gemfile a bit