Substantial refactoring and feature additions.

This adds broad support for query arguments and retrieval of citation
data in exported formats such as BibTex, as well as minor changes such
as a logging framework and configuration and utility classes.

Version bump to 2.0.