Improve .bib file handling, add support for glossaries package

Hi Marcin,

here are some patches I applied to atp-vim in order to make it suite my needs. I just wanted to share the code with you, feel free to take it if you think it is useful

Best,

Christian