Add logging for endpoints
Fix some web socket issues to do with close frame handling
Fix some race conditions in annotated endpoints