Made prepare_response overridable

Also I found would be nice to able override <code>Handler.prepare_response</code> for adding custom headers.