When a user clicks on a favourite bookmark icon that is in the unselected state
- change the state of the bookmark icon
- use api.php?action=options to update the user preference templatedata-favorite-templates
- update mw.user.options.templatedata-favorite-templates locally
(note that we should probably send the data to the backend first before updating locally, in case the api call returns an error)