synapsestudios/synapse-common — pull request #7 by synbot (2014-06-27 18:16:12+00:00)
Title: Create HttpAuthGateway

## Create HttpAuthGateway

It will work like HttpGateway, but will include the auth token if available. If the token is not available, it should try making the request anyway, since it is possible for endpoints to exist that work with or without authorization. The client code should be responsible for handling failures, including 401s.

### Acceptance Criteria
1. None

### Tasks
- Create http/auth-gateway that extends http/gateway and adds the Authorization header to the request using a token stored in local storage.
- Create store/base that extends EventEmitter.prototype
- Update store/http to extend store/base and http/gateway.
- Create store/auth that extends store/base and http/auth-gateway.

### Additional Notes
- None