Added tests for interceptors bug

An interceptor couldn't return a promise, it would be ignored.
Interceptors can return promises
Renamed javascript.json to .jshint.json
Added jshint globals "process" and "require"
Merge pull request #20 from tooxie/intprom

Interceptors can return Promises