A Modular Multi-interface Gateway for Heterogeneous IoT Networking