continuing to remove logic from the templates
bugfix: missing context_plain parameter for DContext initialization
truncate very long titles on like-context
don't truncate quite so much
moving logic from templates into controller