factor code out from editor.jsx to PhaserState.createState().
add export.js and export-template.html.