Working Pebble websocket, new API, debug prints

I reverted to an older version, but then fixed the Pebble
websocket connections, added a new API (which I will update many
more times in the future, and added debug prints for the node
server.