[performance] Context processors and apps (refactor)
Fix test in performance branch.