4: add support for file based preferences

Task-Url: http://github.com/mgatz/sunrise/issues/issue/2