Replace huge if with case in register-endpoint

There was a very large if/elif/elif/else/fi block in
register-endpoint that set the suffix and admin suffix for services
depending on the type specified. Replace if with a case statement
for readability.

Change-Id: Ied76bbeb5fad4a8a9a474f569954189ad4970856
Merge "Replace huge if with case in register-endpoint"