Implement endpoint filtering functionality on the client side.

bp/endpoint-filtering

Change-Id: I48cb8dbd2720bb0c5777712b68a8a5b8f3bf7f60
Merge "Implement endpoint filtering functionality on the client side."