Change group - photo relationship to include time.

All this just to fix photo order in group, and use the right image in
group widget.
Fix dashboard so widgets cannot overlap.