Fix JSHint error in previous commit
ActivityPalette: write HTML directly

We don't need Mustache because there are no variables.
Make optional the callback of DatastoreObject.save
Improve metadata handling in activity setup

- Set metadata only if the activity is not resuming
- Set default title using the activity name
- Add "title_set_by_user" metadata