Added the possibility to send several types of data from gateway to server, added loop on gateway waiting for a plug of mote, added Arthur's work on alerts, monitoring