Updated for Moodle 2.5 version of moodle.

-This update was to get existing functionality working in moodle 2.5 version of moodle
-Another update is coming (eventually) to fix tts issues and add new functionality