ESSENTIALS-278: Remove unused code, fix session leak.
ESSENTIALS-278: Move content blocks-specific code to dashboard plugin