Major changes: TTL on sessions

Add .gitignore and change tests