fixed request code and finished test. also change the non-resolved value for expressions and requests to NULL because undefined doesn't output in JSON.
added code quality test and fixed those pesky jshint errors (and added exceptions for others, obviously ;) )