Refactored deployment scripts.  Updated deployment scripts to handle new config/api.  Refactored shell commands.