Add logic for assembling config items from their parts
Previously, this was implemented in our invenio.cfg but more flaky because it had to deal with parsing and setting of environment variables.
Implementing it as finalize_app hook instead allows us to rely on the fact that the environment variables have already been processed.