Use Secure* APIs to connect to devices

Changed the transfer and installation procedures to use the
AMDeviceSecure* APIs which support both direct (USB) and indirect
(WIFI) connections.