Some refactoring on cli management, and grbl serial connection in order
to simplify furture gui integration.
Refactoring + Event system, in order to be able to command grbl with
web(flask) requests and to send grbl misc. events by websocket.