add provd migration script for unassociated devices

Continuation of bug #4393. Devices that were in the wrong state
(configured, but no line associated) before the upgrade would
disappear from the webi after 14.13 (see commit in xivo-dao).
do not reset device to autoprov if device has no config key

for example: creation of device via restapi does not create config key
typo