Upgrade for Haxe 3, haxelib 3, and raphael.js 2.1.2

I've updated this extern so that it is compatible with Haxe 3, haxelib 3, and raphael.js 2.1.2.

It is not exhaustive, and more changes may be following as we use this in our current project