Update to v1.6 API, add hosted Models and more

Update to v1.6
Add support for both hosted and trained models
Add support for multiple credential types (installed, web) and ability to choose depending on environment
Small fixes