Added PHPsocket, JSON libs, fixed JS getID function to output an int
PHPsocket functons parseJSON and the sending part of doCompare work.