Implemented token hashing

Now hash digests of tokens are stored in the DB.
Added blob remove script
Merge branch 'token_hashing' into protocol_update