Remove earlier support for shared devices

The shared devices are no longer returned in the devices json. The new
api supports this via email ids. So the existing method is
invalid. Hence removing all shared support hacks. device-ids is no
longer a hash table as a simple list would suffice
update tests with updated functions

Make ert tests aware of updated functions and data structures