feat(command): error on directory entries

printResponse currently just prints empty strings on directories. Change
the function to printKey and error out.
feat(ls): add a ls command

print out directories with the ls command.
Merge pull request #29 from philips/better-dir-handling

better dir handling