Add 500 Bitbucket middleware

The middleware opens a Bitbucket issue when an error occurs.

See also https://github.com/APItools/middleware/pull/31