get_session: correctly parse empty cookie jar
server: correctly set up session, and fix up /poll to return names as json