adding logging for debugging; cleaning up js per jshint
changing setInterval to 1s instead of 1ms; log timeDiff
for phantom to exit if the timeDiff is more than 10s
adding config settings; tweaking log messages; exit on timeout
Cleaned up javascript var usage; Added config options for verbose logging, checkCompleteInterval, checkCompleteTimeDiff, and checkCompleteTimeout
Merge pull request #8 from richard-flosi/master

jshint, debug logging, exit on timeout