Add a lightweight version of command hooks for clientv1 commands.

Bugs closed: aurora-581

Reviewed at https://reviews.apache.org/r/23455/