Catch incorrectly-formatted metadata lines. Add beginning code for parsing xref data.
Move biblio stuff and u() function to separate modules.
Better error-handling for badly-formatted dates.