Added preferences class. Used the preferences to store the recently
opened files so user can select them in the menu.
File opener now opens at the last directory the user used. Also started
catching exceptions for when the bibtex file is invalid.