Factor out 'TokenCursor' into own file
Tweaks to auto-outdent for closing brackets; fixes for namespace
indentation