Mode editor upload to server

I want to use the mode creator to create my own mode but there seems to be no way to make changes in the mode creator persistent aside from copy'n'pasting from the mode creator into another editor, which is silly.
So I added PUT support to static.py and corresponding buttons and Ctrl-S bindings to the 2 panels of the mode creator.
With these changes in place one can start static.py with e.g.

./static.py --puttable=lib/ace/mode/newmode_highlight_rules.js,demo/kitchen-sink/docs/newmode.rudl

and then work in the mode editor with Ctrl-S/Upload-Button saving directly to disk.
It's better to not add buttons, since they won't work in most common case when this is opened from ace.c9.io.