Moved the merging of config override options to the last step, so that overrides always override CONFIG values
First, in the _init() method, broke the setting of event handlers on specific objects into their own specific methods. Second, in the run() method, there was a setInterval() loop which eventually would shut down the machine if it was idle for long enough. I moved this loop to its own method so that its logic could be unit tested outside of the context of the run() method.
Added tests to verify the methods which set handlers on specific objects (billValidator, trader, etc) are setting handlers for the expected states. Also, added test to be ensure the function which shuts down the machine when it is idle too long actually does call the function passed to it when it becomes idle too long.
Minor. Correcting jshint errors
Added *.swp to ignore the temp file that VIM creates when editing a file