added exporting API.
TODO: link that API to an export button in view
export bib to xml files working