refactoring

moved helper.runCLI to xm/childProcess.ts
some small fixes
* xm.assertVar
* xm.typeOf
html output capture

added macro to gruntfile
added capture_cli grunt task
added media/capture folder
added lodash.template dependency
improved html cli template
updated TODO.md and README.md