Expose the command-loop core as an API
Extract performCommand and cmdHelp sharing code
Initial implementation of Reddit API

login and listing calls, no integration yet.

TODO: listing to accept modhash parameter and send over HTTP header