Added support for removing a creating directories, and associated test
Implementing this ( #45 ) is the most correct way seems to require basename and dirname to check argv[0] correctly. With this in place and the functions at least stubbed on the Resourced manager it should be downhill from here.