Fixed: Change code and form to work with new devicetype_id field.
Fixed: Fixed bug in code which didn't populate DeviceType dropdown correctly.