Made media root per-app configurable.