make it work with airbrake 3.1.6

i've cleaned up and fixed the sender to be compatible with 3.1.6

another change is probably needed for airbrake 3.2.x or whenever they release the new JSON support ...