Storage is now configurable

More refactoring
Fix a bug where partial saves deleted templates
More refactoring
Intercept and log slyd api errors.