Refs #4478 - prebuild localized apipie cache

Requires https://github.com/theforeman/foreman/pull/1428 to get merged.
Documentation for resources is built during build time. Docs for Index is build in posttrans phase as we need foreman plugins to be present.
We are doing `db:migrate` in the build section? What for?