Let registerWebInterface optionally match requests with mismatching trailing slash.

See also #737.