Added Web API function/action samples and tests.