Design and Implementation of Energy Usage Monitoring and Control Systems Using Modular IIOT Framework