Fixes #4515 - Add support for dynamic bindings

I reworked PR https://github.com/theforeman/foreman/pull/1157
Most of the functionality was moved to Apipie (https://github.com/Apipie/apipie-rails/pull/215)
In Foreman we just use the middleware. The headers are now called ``Apipie-Checksum`` and are added just to calls to `/api` and `/apidoc`.

I fixed controller matcher setup so that it can be extended by plugins.