Moved the code around so that there is only a single device and pugixml file.
Modified makefile so that warnings are caught, there are currently 3:
 1. variable fileSize unused, ignore
 2. variable receivingFile unused, ignore
 3. variable uid_counter unused, ignore
Fixed a bug that assumes messages from the server (or client) are in DST time that caused inifinite loops.