Added NODE_CONFIG_HALT and NODE_CONFIG_DEBUG configuration options
First draft of Mocha tests