(TK-10) Change to maps

Change get-registered-endpoints function to return maps instead
of strings. Update tests accordingly.