Update scope to include access to both devstorage.read_only and prediction apis
Fix and complete prediction methods and test them