Moved some functionality from haas.headnode to haas.model.Headnode.

This is starting to address issue #5. I'm going to need to use this to
implement project_deploy, so now is a good time.
Removed some more unneeded code from haas.headnode.

These were just stubs, which were never implemented and don't need to be.
Merge branch 'hotfix/_must_find' into project_deploy
Implemented haas.api.project_deploy.

Partially, anyhow - it creates/starts a headnode, but nothing else.
Added an HTTP interface to `project_deploy`.

The extra line added to `api_function` gets around an exception flask
was throwing wrt duplicate function names for views.

The URL and HTTP method are different from what was previously documented
in `doc/rest_api.md`; the docs have been updated to match.
Started work on a CLI tool.

Right now all you can do is start the server, but going forward we'll
use this to issue client-side commands as well.
Merge remote-tracking branch 'moc/devel' into cli
Merge remote-tracking branch 'moc/devel' into project_deploy
Implemented user_create in the CLI client.

This involved a few touch-ups to the rest of the CLI.
Reworked rest api mapping docs.

Made it generally more consistent.
Fixed a formatting issue.

Adding the bit of text between the list and the full spec convinces github to make the summary a code block, which is what was intended.
The {h,}nic in {connect,detach}_network is now part of the url.

Previously it was passed in as part of the body.
Added an endpoint for the cli tool to haas.cfg.example.

This will be the correct endpoint when haas serve is invoked from the
cli.
Trailing whitespace.
Fixed some pep8 violations.
Implemented the CLI for project_deploy, refactoring in the process.

Note that the HTTP bit of project_deploy is not yet implemented.
Trailing whitespace
pep8 violation.
CLI configures logging (with default level of debug) on startup.

We'll want this for something I'm about to implement. We probably want a
more complete solution at some point (this is going to give us debugging
statements from all the libraries we're using, too). This will have to
do for the time being, however.
Merge branch 'project_deploy' into cli