Added analytics, metrics, and logging support for ApiResponse. Rebuilt testing database.

573u, 90i