feat(token): add first command: token

Besides the token command, this includes much of the underlying
design that all commands will build off of.
It may be worth a high-level comment about why we have to make an XHR-compatible thingy here.