Handle origin with port numbers correctly
Fix utils.getOrigin for file:// urls
Merge pull request #173 from lpinca/add/pusher-fixes

Add pusher fixes