added connectivity check
added support for runbook templates
updated regex for commands
added a documentloaded callback to documents and cleaned up some non mvvm pattern code