beginning setting refactoring
implemented settings framework

Fixes #142.