Added basic support for generating API documentation using doxygen

Tweaked version of #459.
  * Added script files.
  * Added .gitignore lines.
  * Moved `Doxyfile` and `Doxyfile.in` to `doc/`.
  * Updated `Doxyfile.in`.
  * Stripped down `Doxyfile.in`.