Moved Format factory methods onto Format.
Renamed 'unbroken' format to 'plain'.
Made Keycode and Format serializable.