Add jshint gulp task and fix issues with the code.
Yet more logging.
Update version.