Now also saving drafts to sql. Will have to see how to clean them later.
Fixed bugs and moved file extension parsing to before saving files to draft, mongo doesnt want dots in keys
Made template tag for dict lookup
Refactored a little bit for making new/copying datasets
Now with new/edit status in session
Fixed output from render_values and populating params with inputvalues