Remove hack usage of record 'cowboy_req'. Make more careful request state handling.