move some code around inside server transport, add more paranoia checks for edge cases, add something to allow dependency injection for testing
move some code around inside server transport, add more paranoia checks for edge cases, add something to allow dependency injection for testing

rollbar/rollbar.js