Added support for specifying additional headers when creating static request handlers

Also added some comments to the HTTP reply methods