moodle-tool_mergeusers: refactoring of plugin enabling CLI scripts, more Moodle-friendly (both web and code), added special cases on message-related database tables.
Merge pull request #14 from jpahullo/refactoring

Refactoring