Move towards stable config APIs.

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