Implement unified config parsing (mostly)