Clean up submodule repo before and after deployment, re-arrange rake tasks.