Move login code into partial.
Move subdomain helpers to lib directory to make more available.
Reference new location of subdomain helper.
Merge branch 'test' into mounting
Move factories to lib directory and point tests to new location.
Move sign in spec to users folder.