Added Units and XML Writer

Added code from microRTS for Generic Unit creation as well as XML
output.

//Special Credit goes to Santiago Ontañón