adding application context setup funcs.
Merge pull request #1 from ctava/ct_application_context_funcs

adding application context setup funcs.