OK, I think that I have something that is really close to be an answer:
I put my code in a gist
Here is the result :
I built several Backbone object to respect the MVC pattern : the controller.Custom
is in charge of doing all the logic, the view.Toolbar.Custom
deals with toolbar buttons, and the view.Custom
display the inner UI.