Added grunt build commands and jshint.
Added API for querying posts.
Updated test and fixed code for jshint.