Added addinstance and myaddinstance for Moodle 2.4