In your script.js file you are injecting a html page into a page which won't work.
A page can only have a set of html, head and body tags.
And you are correct, to safeguard extensions a definition.xml file has to be present in every, or the last folder in a tree, folder for QVS to serve it up for you. Also this will probably break the css files so you might have to replace the paths to any images.
You also missed to instantiate the editor through
CKEDITOR.replace( 'editor1' );
Check out their getting started guide CKEditor 4 Documentation
Ok, I was on vacation last week so just getting around to replying.
What am I missing? Is there a simple way to debug extension objects? So far my development has consisted of just a lot of trial and error.
This should be pretty simple to test out. Does it work for you?
script.js 1.4 K