Basic support for Chart 1.0.

Todo:

- Move backend-agnostic code to a separate module.
- Support the Chart-diagrams backend.
Add support for the Chart-diagrams backend.

This backend supports fewer file formats than the Cairo backend. However,
it is much easier to install on systems that do not have Cairo installed,
such as Mac OS X.