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