allow slashes in the api path

This is also issue #29, but in the form of a pull request.  Some whitespace whacking also occurred.