Refactor backend in Go and remove websockets