Update to Elgg 1.9 (replace $CONFIG by elgg_get_config())

This has been tested on Elgg 1.9.4