Add CORS support to auth middleware
Remove unneccessary cast
Merge pull request #2 from hpcloud-mon/CORS-support

Add CORS support to auth middleware