B/http auth

This makes two small changes to our SDK

1. Hacks on Authorization headers for ajax requests
2. Normalizes response format over sockets/http

I'm able to put/get over sockets and http with authentication on this branch, plus the demo works.