interim commit
serving directories

added ability to server a directory as well as a single script.
added tests for parsing path
oops fix tests
improve tests
Merge remote-tracking branch 'gaz/master' into dirs