Moved exception handling to BaseResource from UserResource.
Refactored AuthenticationResource.java
Added comments to AuthenticationResource.java
Little refactoring and more tests for user resource.
Refactored index error handling and refactored tests.
Renamed test method to match test.
Fixed user creation redirection. Also changed database adding to return added item, with id if possible.
Added comments to UsersTable and renamed add to insert.