Merge pull request #23 from stronk7/master

NOBUG: Avoid a notice caused by undefined $CFG->libdir
MDLSITE-2102 - support jshint checking of javascript

Since it reports in checkstyle format we can use existing reporting
mechanisms.