Start working on HGAPI

Added functions for basic handshaking and registration of clients, both
server and client are in a different 'namespace'.

Added for:

Terminals
Shops

Also added th generation of shop tokens. This system will alow non
adminshops.