always parse content-length as a long; RestUtils is static code

Pretty straightforward: we should never rely on the ServletRequest#getContentLength method, or parse the value of the Content-Length header as int data. I made RestUtil static because it has no state, so it's just junk object creation. There's also some logging.