Refactored guessMode to separate file. Added Gruntfile with jshint and
complexity.