WIP: First draft for upgrade API and CLI.

Very rough draft for upgrade API and CLI :construction: 

TODO:
- Token-based security
- Tests
- Documentation
- CLI script that wraps ```bin/instance upgrade_http```
- Decent progress logging during upgrades