bookmarks: factor out bookmark file opening for easier extensibility

--HG--
extra : rebase_source : 9b523f33c407b5a575d7d37e8c49ed4d7ee0ad1b