Move pyserial and requests to optional dependencies.
Make sure LOG is defined before using it.
Install all optional dependencies on CI to run test suite.