SmartDAOFactory fixes, triggers actions fixes, added BootCompletedTrigger and BatteryPluggedTrigger