About time I put a licence on this. MIT as usual, naturally.