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
TSPHP-614 change from rst to md