Add 'cd' command to shell.
Fix 'pwd' command.
Move 'device.c' to more abstract layer.
Move 'cache.c' to more abstract layer.