add context processor method
allow config object to be passed to AppFactory