Implement api.createBookmark and api.deleteBookmark.