Added logout, added global notification system.