Parser robustness improvements
Parser robustness improvements

More robustly handle malformed and empty requests. Kind of hacky -- need
the netasync api to support nonblocking receive to make it better.

jma127/bitc-rpc,jma127/bitc-rpc,jma127/bitc-rpc