Add helper functin that validates a .onion address
Make a function that validates an HS address and can return either a reason as a string or an error code indicating the error type (maybe use errno values for that?).
int is_valid_rendservice_addr(const char *addr, char **reason);