Add REST API to deploy the latest bits on the selected branch

This is not ready to go in. PR is only to start discussing the approach, as we were chatting with @suwatch  about it.