Sessions: Fix problem with indexing sessions in preferences window

Session index was wrongly updated when session was deleted. This could lead to saving wrong name or even loosing saved tabs.
Sessions: Ability to lock session

Issue #29
Merge pull request #47 from darkelement/lockable_sessions

Lockable sessions and session related bug fixes.