Make AccountManager into an event target for better separation between app and service-library handling of registration events.