Client side Fixes

The UI now holds the Key and all work is done in the token. The way the
server signs the token has been changed to correctly reflect this. Only
FileThread is currently checking the message numbers