Updated to work in Moodle 2.5

Updated the code that calls the images to conform to 2.x standards

Updated the calls to the DB to use the $DB global object

Replaced the call to $loggedinas with $OUTPUT->login_info()

Fiddled with the CSS to play nice with the Clean Bootstrap theme