MDL-45625 mod_forum: Deprecate many old forum functions

This also moves these to their own file to help manage the deprecation process.