made on_request/1, on_response/4 compatible with cowboy onrequest/onresponse callbacks; moved handler name to application config