Implement end-cycle

- Conditionally show the end cycle button (only when there is a current
cycle)
- Set the status of the current cycle to Finished on click of
button.end-cycle.
Merge pull request #1542 from reciprocity/feature/end-cycle

Implement end-cycle