Code for Lora gateway, including libloragw and demo applications