Interceptors can return Promises

Closes #10.
'require' is not defined.