Improved devdocs

* We now use autodocs
* Added hscommon docs
* Moved contents from document.rst directly into docstrings.