Allow attaching to AS::Notifications namespace up front

Before, you were required to attach *after* adding the methods to the
class, since the attachment process needed the methods to be present.

With this change, any new method will also be attached to the configured
namespace.
Merge pull request #12285 from dasch/dasch/allow-attaching-up-front

Allow attaching to AS::Notifications namespace up front