Merge branch 'dev'
update Cakefile to log stderr
refactor Cakefile, extract function runscript()
Merge branch 'master' into dev