Improve determining services types from names.

Trim initial components if they don't start with an '_' and drop trailing '.local' components.
Fixes #16
Also announce A records containing the IP4 addresses of the service.

The A records are emitted for all interfaces, unless interfaceIndex is used in options.