Add parsing of natbib warnigns

Also, refactor the logic for single line warnings. Natbib
and latex have the same single line warnings so we can just
reuse the logic by parsing the prefix regex. I also
created 'constant' regexes at the top of the file for reused
regexes. I think this makes the code a bit cleaner and should
make adding other single line warnings packages very simple.