Data set saving added (needs testing), API upload skeleton

#799