Fix(HttpInterceptor): Refactor Interceptor.

- Remove factory.
- Modify the property apiMocked.
- Remove variable doMock.
- Add test specifications.
- Restrict the valid values to boolean types for apiMock parameter.
Modify(*): Change the karma.conf.js to integrate with web storm
automated test plugin.