Remove dependence on stdstream, add hex code for android, unify implementations for easier testing.
Remove dependence on stdstream, add hex code for android, unify implementations for easier testing.

thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,haxenme/nme,madrazo/nme,thomasuster/NME,haxenme/nme,haxenme/nme,haxenme/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,madrazo/nme