Initial work on fixing PHP Strict Standards warnings

This mainly corrects using static function and bad inheritance in method
signatures of NamespacedElements
This is a class of static methods. The abstract keyword prevents unnecessary instantiation.