Removes unneeded and deprecated code

This removes quite a bit of discussions related code. The code hasn't been used at all in the Elgg 1.8 version so I decided to remove it instead of updating.

If we ever want to use similar features again it is better to write them from a scratch.