Added php script to build agent from template and XML
File cleanup