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.
I haven't realized we need to do migration.

You are right with tito, I was expecting you to run it, but we can do it
while merging I guess in this case.

-- 
Later,
 Lukas #lzap Zapletal