edited shell script to setup and maintain a deployd api, bin/dpd_api.sh