Make directives PEP8 compliant.
Included transforms in a toctree to kill build warning.
Added a base class to share functionality across directives.

- Removed manually entered titles from Rebin.rst as they are now generated in the related directive.