Add new API to web.py

Implement the test-cloud function in web.py
and add new callback APIs for the docker script to use.

Change-Id: Ib3c561452dddb1fde0511c3a71ec83b0a7dfdd61