add upstream registry compatible JSON template and tar order

Without these changes our saved images can only be imported
into more recent docker versions and are not accepted by the
global registry.  We will need to continue to track the
evolution of the saved image format.