Implemented first pass at websockets start and stop functions. Current tests are passing, but need to write tests for this.