Added Before function to ResponseWriter.

This allows middleware to have a function get
called right before ResponseWriter has been written to.
It can be used to set headers or do other necessary things
before a response has been written.