feature(discussion): Added some extension points at discussion sidebars.

These changes allow 3rd party plugins to extend discussion sidebar, and add
there features like a subscribe to discussion button, a list of most popular
posts or most active users...

Was #6392.

- [ ] resubmit to 1.x branch