move some code into app.js and add sockethub-credentials module
open sockethub connection