Add saving function to paletteLoader

It can save as either a directory or a zip file, and read from the same.