Moved all fractal handling code from CifCanvas to CifFractal.

Fixes #4.