Added jshint config etc. and made the code pass.
Moved test data to /testdata.
Replace vows with mocha and require('assert') with unexpected.

Travis configuration: Stop building with node.js 0.8.
Added test for images with wrong extensions.