Added the ability to change the order the customcert elements are displayed

Note: I did not create a db/upgrade.php script to add the new database column as this module should not be currently used by anyone.
Included missing global values needed in function
Updated the version and the Moodle version required to the 2.5 beta release
Converted tabs to spaces for the grade subplugin