More removal of unused code
Code cleanup of user model and add more tests
Update Rails version
Update Rails gems