Feature/json request

@burzum I don't think the call to `getallheaders` is appropriate or needed - if it's not in `$_SERVER` - the header isn't there to be read.