Report deprecated function calls in the User-Agent.

This change implements a User-Agent that will be used if any deprecated
functions are called. This will allow us to see apps using deprecated
calls so we can reach out and help them update.