NewHandler: do path matching.
NewHandler: don't allow prefix to end with slash.
Removed "sockjs:" prefix from some panic messages.