Implemented hashing of tokens

Must not be merged before #14 

This implements the salted hashing of authentication tokens.