Changing how websocketd works with arguments that point it to directories.

This implements #51, goes over changes descibed in #55 and touches on the issue in #29.
See also per line comments.