moved all "magic" at the top of definition
supported HTTP methods
added 'extend' method to Headers allowing add or set a bunch of headers
fixed 'extend' method of Headers
added 'headers' parameter to HttpError
handling of requests with unimplemented HTTP methods