Wow, after playing with a very cranky server, reading a whole swack of online documentation, and swearing a lot...I stumbled upon this excellent tutorial. Now to figure out templates.