Add appveyor

WIP
It's quite likely you just don't need this function - that it's easier to do inline at each location... example below: