warner's suggested refactors from pull 6, modulo moving input to POST body
PEP8
PEP8
switch http input/output to post of json-wrapped, hexlified data