Use elgg_get_config() instead of the $CONFIG variable.

In Elgg 1.9 $CONFIG variable isn't automatically available for actions anymore so use elgg_get_config() instead.

Some of the actions are completely broken without this fix. Some are working but I changed them to use elgg_get_config() anyway.