use activesuppport notifications for request logging, add 5xx error handling