major addon to several parts

more addons for device and schedule loading from database. structure
addon to handle multiple actions for devices.