added preliminary tagging and numbering of bibliography refs

think this is probably it for me before the weekend as I have to get to other stuff, but this implements most of the old reference tagging regex, pending some more methods for identifying the ref list and first author names.