Added jasmine to predefined globals.
Added karma-coverage and a special Webstorm IDE karma-config file.
Edited .jshintrc.
Added test suites and specs for service.resource; refactored getCount() method of service.resource.