Parse a filepath and return an object of path parts. Tiny lib, no dependencies.