sm: warn if mss is not power of two

Leave it alone for now.
sm: create endpoint's directory

and strdup() it to ep->uri.
Some trivial cleanup on destroy)endpoint().