Updated WS api with new modes to make frontend dev easier. Made minor
client-side changes