Change the way session config is done
Throw NPE as per spec
Correctly wrap exceptions
Actually reset the buffer on sendError()
Return correct address
Session changes to better support URL rewriting