CMS-2610 Implement rendering of content using javascript
Made parameter 'mode' from URL available in context.request object.