New APIs: getStartPosForNode and getEndPosForNode (and path)

These new APIs allow you to get the start/end offset of a node/path
which has no content in itself, and thus no position, by looking
at previous/next nodes until finding some real (visible) content.