Finishing registration and login

- DB sorted out for good
- Redirect class for convenience
- Error page
- Renamed index and its view to login
- Created a index page
- Session management, token generating and checking, hashing updated
- Validation inputs given the ability to have friendly names
- Logout created