Added scripts for upgrading moodle-source
Added unit tests
Use scripts to upgrade moodle-source package