refactored response dealing by using RestExceptions. Added index to file database.
renamed "hashedPassword" to "hashed_password", added "hashedName" to identity
commited wip