Draft implementation of format_writer.

Conversion support is not implemented yet.