Endpoints to destroy and change state of a channel

It closes #59 and closes #60.