An IoT gateway centric architecture to provide novel M2M services