Port to 0.2.x API. Crop webms for improved performance.

Other minor cleanup and reorganization.