ticket:4 context processor code refactoring

Put settings object into context