update docs and minor jshint optimizations
add a check to see if resource object has .query method
use jasmine 2.x
add tests for lists api