Add cookie secure flag.
Add memcached support, to store auth token and storage url.
Add pseudo directory support.