The bootstrap_config_redirect_*_user and _password values are stored in
provisioning.autoprov_redirect_credentials, while _profile is a sync
parameter in provisioning.autoprov_sync. resource_from_item only called
devmod_sync_parameters_prefetch_api, so GET returned the profile but
silently dropped the credentialsm.
Add devmod_sync_credentials_prefetch_api, mirroring the read-back the web
UI already does in Controller::Device, and call it from resource_from_item
for the admin and reseller roles only, which are the roles allowed to write
these fields. Subscriber and subscriberadmin GETs keep them hidden.
Change-Id: I02a8975fbf9fe60796832cf281d054e634ce6c00
(cherry picked from commit 8042d9f4d1)
(cherry picked from commit bea08fb66a)