Cliandlogindb

moodle-tool_mergeusers: adding CLI scripts and recording merging logs into database for further reference.
     * cli/climerger.php executes a command line asking from prompt two user ids to merge.
     * config/ directory has the key configuration for merging users. 
     * config/config.local.php is a git-ignored file to allow local settings to be applied to the plugin.
       Settings on config/config.local.php replace if matching or append to the settings on config/config.php.
       See config/config.php and README.txt for further reference.
     * A database table is added, tool_mergeusers, where ANY merging action will be logged into.
       In next versions we will be adding web listing of this merging actions.
     * The idea is to help on any Moodle instance to have their own source of merging users.         
       See the README.txt for reference.  

I have also added log visualization (see last commit):

moodle-tool_mergeusers: added logs visualization.
        * Settings present two links on merging users, one for merging and another one for viewing logs.
        * Viewing logs lists a table with ALL the records, with helping links:
            * One link to see the full log of actions.
            * One link on every user field to bring the admin to the given user.
        * The plugin also detects whether the user is no longer present on database, showing that user with ID X was deleted.

Now I will work on a local development for our own Gathering implementation to put it into the cron.

Working hard... as you can see. We really need it, better if it can be shared.

Saludos,

Jordi