Add the metadata cache and "Save as" links with nice filenames.

Replace callBackgroundPage with exportInstance/importInstance.
Do all requests to the RECAP server in the background page.
Work around size limitations of Array.apply(null, new Uint8Array(...)).