Add capability of adding commands on connect
Merge pull request #189 from mephux/onconnect

Add capability of adding commands on connect