Added new version of serial driver. Refactored the IoT protocol driver to work with new serial driver. And did a cleanup