Simplify handling of progress bars and humanized values.

Fixes #378.
Merge pull request #381 from vmarmol/ui

Simplify handling of progress bars and humanized values.