Added basic TTL for sessions

Resolves #118