fixes issue #252

A patch to extend a cookie based session, when a user accesses sync gateway after 10% of the session expiration has elapsed, the original session ttl is added to the current system time and the session and cookie are updated and new cookie is returned to the client.

A new test has been added to the admin api
Alignment