Add stub to mapid for configuring logging.
Refactor parameters and add items for tokens.
Update interaction with TOKENS interface.

While considering the new TOKENS interface, I have changed the
interaction model from a list to a dict.
Add stub for new TOKENS interface.
Move token module to a package rather than a module.