cli, pkg: Update Flynn component functionality.

Work in progress. Introduces `flynn upgrade`.