Add autolayout support

With autolayout frame sizes are computed based on constraints, so typically a view is created with a frame of `CGRectZero`. This works fine - except for the code that scales the line width and font size. I added a check to avoid dividing by zero.

I also updated the example to use autolayout for one of the progress indicators.