Migrate to progress component.

Moved progress bar code to a component since I share it among several
different apps.