added app registry and context processors for simpler configuration