Adds getPath to Handler

IMO it is wrong that only the `__tostring` method returns the path in `Handler`. It makes it hard to mock Handler objects since a Mockery cannot mock __tostring.

I also think that a method like `getPath` is simply better.