new function: get any page's top most Page ID

Whether it is the direct parent, a grand parent or even a great grand
parent it will always return the top most page ID