-Fix authentication mechanism, don't require basic auth on top of
handshake.
-Make AgentCache work in a static manner
-Make sure that fileState locks are done per filename, i.s.o. shared.