handle chunked transfers properly, few other small improvements
handle chunked transfers properly, few other small improvements

jfillmore/Omega-API-Engine,jfillmore/Omega-API-Engine,jfillmore/Omega-API-Engine,jfillmore/Omega-API-Engine