This sidebar is no longer a "proof of concept". Rename to "sidebar", perhaps?
Any conditionals like if ( this.pocSidebar ) can be rewritten, this is always true now.
Try to clean up this issue in MWTemplateDialog:
// FIXME: This is created at the wrong time. That's why we run into the situation // where an old instance exists. Should be in initialize().