Adds decorator to deprecate functions and methods

This will be use to implement bp deprecate-v2-api.

Change-Id: I361ac1c472f6eb9b865a2190fee7d33f5022b24a
Merge "Adds decorator to deprecate functions and methods"