Misc changes to help build cleanly.

It seems edoc is pretty picky about where one uses doctags. Fixed
it so that master builds without any compile-time warnings or
errors. Also changed rebar.config for better appeaance.