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.