syntax fixes and adjustments for nilclass' sockethub lib
shuffling sockethub code...