TSPHP-614 change from rst to md
TSPHP-608 extract set up in build files and put in separate file
At the same time I made some cleanups in the build.xml as well as in Compiler.java