writting widget api, ref #128
Merge branch 'master' of github.com:avelino/mining

* 'master' of github.com:avelino/mining:
  remove print, fix protocol
  check protocol to ws