Adds tests for xdotool controller

- update controller module to export a ctor function
- bring in sinon to do some stubbing
- creates a test file for xdotool
Finishes tests for XDoTool controller

The tests are cleaner - but I still think I have to dig into sinon some more.
Merge branch 'dd/xdotool-ctrl-tests' into dev