refactor Swift message creation in Notifier

fixes a bug reported by Scrutinizer:

  \$message of type object<Swift_Mime_MimePart> is not a sub-type
  of object<Swift_Message>.
refactor AppKernel::registerBundles()