[KFSQA-645] Feature pretty much works.
[KFSQA-645] Refactored some of document.rb and utilities.rb to make it easier to get an object's class or associated page.