Refactor signals, add a haxelib.json