Various changes

- Add test to check open flag values
- Rework interfaces to cross-process copying
- Track file descriptors
- Add open mode flag parsing
Add mmap and unhandled syscall support