service_mapper: fix lots of problems in the service mapper
channel: make channel number like name

This allows user configuration which in the event of no setting will fallback
to information automatically determined from the services.

I have also updated the name stuff and simplified it a bit (with one minor
change to idnode to support).