add Duplicate button to dashboard

finish PR #5659

also fixes some related bugs with the path/name changes.

closes #1877

ping @ellisonbg for UI review
So the comment above describing why those lines are what they are no longer applies?