cleanup and moved searching cookies to auth_http
logging and exporting the auth post result
Merge branch 'websocket-auth' into merge