Linking asset to device

Changed linking mechanism (*handle_device_linkage*).
Moved signal into asset save.
Added tests.
Fixed saving *device_info* in  *_update_device_info* .

@quamilek @ar4s 
remove this