Rewrite tarballs as per https://github.com/paypal/kappa/issues/16

Rebased and reopened.

This is as per https://github.com/paypal/kappa/issues/16.

Also fixed conversion of response to object variety with better handlers.