Mark harmonia tasks as done when Trello card is archived

I thought I'd push this up in case you have a chance to look at it while I'm away. I think it's basically working, but I expect I've missed some edge cases. Some of the commits could probably be applied separately i.e. they are not-specific to the purpose of this PR.