Swagger

branch rebased on hasdna:master.

Swagger is accessible under the /api/v2/doc/ endpoint. Just in case, I would like to have someone familiar with the API go over the swagger generated docs to see if anything is missing, if no "special" methods were used then the swagger should be complete.