Refactor to enable easier subclassing of editor

Extract a number of methods from the core workflow to enable
customisation by subclasses of the `AutoSelect` editor.
Add rough Docco Cake task

Add a Cake task to build Docco documentation from the source file.
Pretty rough and ready, but serves my purpose.
Add documentation

Add some Docco-friendly documentation for the editor.