Deprecates use of $CONFIG in plugin start.php

Also has a fix for elgg_deprecated_notice().
I wonder if it's too late to deprecate this in 1.9 so we can remove it sooner?