headers rewrite (rack lint issues workaround), bitbucket webhooks support