Some refactoring to make the Graphics API package structure better fit
to the Chart and Document API package structures. Also added hashCode,
equals, and toText to drivers.