Tidy up
Use Command instead of SimpleCommand for outdent, indent, and heading commands
Fix headingCommand.queryState