initial refactoring of scripts
adjust scritps to use generic Amazon Linux AMI
re-introduced reset_ml_on_startup on scripts