Changed the reply to be REP
Refactored code by moving it in different modules (mainly networking code into the network module)
+ Implemented Velov change of state reply handler
Fixed bugs in the where clauses of update and select queries