Add register command to server

Adds the register command to the server console to register new (domain,
token) pairs.