Finished API unit tests. Added jshint to test process. Modified some stuff.