Stat should have size for dirs too
Add fs compatible methods for streams
Strip trailing slash from paths