Remove NIO dependend code

Fixes #1: Depends on Java7 due to use of NIO
Fixes #2: java.lang.NullPointerException on response creation
Fixes #3: Returns HTTP 500 when response caching failes