Add dirname fn and slightly tweak behavior of mkdirs
Remove standalone ls function
Allow slurp and spit to take options