Feature jssave

This adds the javascript class that handles saving and updating an analysis.