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

Allow saving config from anywhere