Started a separate module for the public api independent of HTTP.

See the docstring.
api_server now uses the haas.api module.

For some reason, enabling debug mode causes the module to be unable
to import things correctly from the source directory; you have to
actually install the package via setup.py. Need to figure out why.