Make WriteHeader set status before calling beforeFuncs so middlewares can do stuff based on the resulting status code of the request
Merge pull request #56 from marcosnils/master

Make WriteHeader set status before calling beforeFuncs