Merge pull request #3 from ferrouswheel/master

refactor to share init and in preparation to use hunit

Thanks Joel
Merge pull request #4 from ferrouswheel/master

Add testing scaffolding, and a couple of basic bibtex => html tests

Thanks Joel
Updated to remove warnings
Refactored more into library
pin pandoc version, and modify to fit pandoc api change