added application context
added rendering templates and generating urls to app context