Add css flipping to the grunt workflow

Did some tidying up of the calls, though I'm not really sure if
what I've done is the best way forward.

Mostly this involved introducing a 'compile' task that gets called
from elsewhere.