Improve compatibility and implement TCP support

This adds improved compatibility for JSON-RPC clients/servers that incorrectly handle HTTP header names as case sensitive and implements TCP support.