devfs and dev/null now working

- Fixed some bugs and added missing code
- Added devnull.c
- result argument for ramfs_lookup() should be optional to allow easy
  checks