[WIP] Add "Publish" menu item to publish gist

This is a work in progress, after finishing, this would close #2501.

Currently this adds a menu item and hooks in Javascript to be called after clicking it.

Where is the best place on the Python end to implement this Ajax call? Should this be handled by `NotebookHandler`?
Or should I create a new url endpoint and create a new Handler?