Add templates used by astropy Sphinx extension
Use astropy Sphinx extensions in conf

Also sets a configuration item for newer versions of numpydoc that suppresses many, many, many warnings.
.gitignore the api subdirectory
Whitespace fixes
Edits for clarity