And there we go. I found most of that via Googling, but none of it was all in one place and it took way too long to piece together. Hopefully it’ll be useful to others. Bear in mind that I DON’T REALLY KNOW WHAT I’M DOING and may have got things wrong.