Pulled out some Cakefile bits into separate files in tasks/.