Session and cookie handler in node js using memcached for storing sessions