added post functionality and websockets beginnings