Added support for Moodle 2.4

The internal moodle block structure has changed.
This commit addresses those changes.