[IO] Added Event class support to FileEventManager and SerialPort (from Hari)