upgrade cowboy, integrate frontend with an http handler, send messages between nodes both ways