Fixed assocations on models, added automatic-action-registration upon creation of new device