deft-deploy module; some reorganizing to use the simple templating