Made server code more fail-safe, removed websockets and worked on the webapp