Merge pull request #1117 from slovdahl/master-slovdahl

Fixed NPE.
Fixes #1120
Improve XDR support
More work on solid XDR support with the new protocol
Remove console
Allow Interceptor to set response's header with Jersey
Let interceptor handle auth header
Align XDR code support with atmosphere.js
Fix .each regression