Added support to flash target.
Fixed the examples to work with the new system.
Updated the file haxelib.xml.