change deployments obj to an array
to preserve order and allow simpler handling of deployment objects
fix /deploy test: was testing for files in the wrong dir
add a /deployments API endpoint to discover list of deployments
and the commits that are currently deployed to them