Refactor boot sequence

This is the start of making it possible to use TiddlyWiki5 as a library
from a node.js application
Docs updates