Return past events in descending order

In addition: Added test for upcoming activities and refactored to remove duplication.

Together with @signed.