added first draft of automatic zIndex calculations that should give the ability to do entity layers in tiled
added an ant build.xml to make life easier