Add env login into mk scripts
Remove CMS logic from main script
Move templates into bin/scripts area