Reworked codebase to be compatible with OpenFL 2.0.1. Introduced haxelib support.