CMS-2633 Implement root context for use in javascript controllers.