Refactoring canvas and getting coordinates from cropping

* canvas is now exposed as a class
* adding basic events handler to read the coordinates when there is a
selection
* adding mocha to the default grunt tasks
* adding "expr"= true to .jshintrc so that jshint doesn't complain
about the syntax of mocha and chai