Updated client to include device update. Added tests. Fixed bug in
metadata provider that prevented clearing metadata.