Implement the Deployments API.

This commit adds functionality to create and list deployments. Since
deployment status are located under a different resource path, those
will be implemented in a separate class.
Add deployment status support.

This commit contains the code needed to create and query deployment
statuses.
Merge pull request #166 from nahiluhmot/add-deployments-api

Add deployments api