Some clean-up to entry.h, and the affected methods in open.cpp.
Add readdir stub