refactoring of haxelib related commands and classes