Apt: move update command functionality to http api
update command accesses database directly. we should move related code into http api to allow any clients to use this feature.
update is a long running task, so we should show the progress to user properly. Docker plugin has a progress bar example.
ps: this issue requires PR #189 (closed) is merged.