added generic config storage support
added tests