Revisited data model for references and bibliography.

Now we model references so that proper data can be extracted for Citeproc.
Citeproc is now used to render labels and content of references dynamically.