Update to rails 4.0.1
Replace custom authentication with Devise
Remove remnant files from old authentication system