Deprecates use of $CONFIG in plugin start.php

Also has a fix for elgg_deprecated_notice().