Moodle 2.4.x support

Two tiny changes in lib.php for Moodle 2.4.x support:
(1) change type_config_form() to static and add $classname param.
(2) Update search function declaration. (Add $page param)
Merge pull request #1 from nadavkav/patch-1

Moodle 2.4.x support - with thanks to nadavkav