Port agent API to v3 Part 2

This patch contains the changes required to adapt the agent
extension and the corresponding unittest to the v3 framework

Partially implements: bp v3-api-extension-versioning

Change-Id: I6baa379ede41a1627f69d5d1a719cf2c6d7e9d9e
Merge "Port agent API to v3 Part 2"