Added a doc describing the process for cleaning up network state.
Factored out the check for an existing user.

We'll want this for most of our *_create functions.

This includes some basic tests, which are passing.

merged moc/devel and local api_server
Merge branch 'api_server' of https://github.com/jlbernard/haas into api_server