Changes to API with Haxe context

Complete source changes to work with the new Haxe Genome2D context