(TK-10) Add log-registered-endpoints

Add log-registered-endpoints, which will get the
info on the registered endpoints and log it. Add unit test for
this function..