Faye refactor necessary for the node-webkit app