BibEdit: New RT ticket fixes and refactoring