Move towards stable config APIs.

- [ ] Implement new serialize methods on schemas
- [ ] Implement config_lib.format(config)
- [ ] Implement config_lib.store(config)