ethernet: refactor and auto reopen on close

- created Ethernet class to handle ethernet websocket
- made Ethernet class detect disconnect and automatically reconnect