Added everything necessary to package to haxelib
Added return for handleError() function

Must be a Haxe3 compatibility issue, it excepts a return type and Haxe
complains that handleError() has a Dynamic->Void signiature, when it
expects Dynamic->Dynamic
update license in haxelib