Allow saving config from anywhere
Fix tests
Add tests
Merge pull request #645 from AudriusButkevicius/cfg

Allow saving config from anywhere
Add session support (fixes #611)