Merged from MOODLE_16_UTF8. Abandoning the branch.
Scripts have been split up and trimmed down. If a discussion window is left open then updates happen on a slower and slower rate (exponentially increasing delay) to help keep load low on a server.