Added in support for .Net calling back into Node.js for progress reporting and error reporting. Also added in startup arguments as well as cleaned up the code.