SERVER
GET /devices
GET /device/:dev
POST /device/:dev/data
GET /device/:dev/data
POST /devices/register
GET /gateways
GET /gateways/:gw
POST /gateways/register
GET /ping
GET /health

GATEWAY (Intermediary & Final)
POST /gateways/register
POST /devices/register
POST /device/:dev/data
GET /gateways
GET /gateway/:gw
GET /ping
GET /health

DEVICE
---

Data Format
{ Name : LOCAL_ENDPOINT.NAME,
  Data : dataItem++, //an integer incrementing everytime data is sent
  Time : Date.now(), //the date (+hour) the data has been sent
}

Register Format
{ Name : LOCAL_ENDPOINT.NAME, //the name of the entity which want to register itself
  PoC : 'http://' + LOCAL_ENDPOINT.IP + ':' + LOCAL_ENDPOINT.PORT, //the address from which the registering entity can be joined
}
