Introduce Jshint

I rebased to the master branch. Tests seem to work.

`make jshint` executes the jshint on the lib directory. The make target is also included test-all as last step. One can add stricter rules but for the beginning I think the defaults are more or less fine.

Regards Philipp