Initial support for custom OpenGL graphics.

Ignore-this: d6845995e16109abb0452f96ccf17206

darcs-hash:20140922213634-4d2ae-ab71962659a948bca659182765e41bbfe250f156