Amended the JSON object to allow for per-channel settings.
Found the bug stopping the connection from happening - added in the method call "Connect" to main.cpp
Renamed the session variable from s to sess for clarity.