[Filesystem] Fix and complete the API

Implement the spec.
Fix and pass the TCT tests.
Fix and complete the example.

BUG=XWALK-1071
BUG=XWALK-1827
I mean return type of `find_last_of()`, for example: `size_t found = from.find_last_of("/\\");`