Added a way of canceling discharges, including communication with a remote API