Fixes redneckbeard/gadget#9

This allows setting custom headers on a response and also redirecting.