Deprecates use of $CONFIG in plugin start.php

Also has a fix for elgg_deprecated_notice().
Sneak it in. I won't tell anyone. ;)