Add --hyperlink-source option, plus minor code cleanups

This adds support for generating source links.  This also cleans up a couple things:

 * Compile with `-Wall` (with an exception in Main to allow name shadowing).

 * Use a record for standalone-haddock's options.