Better implementation of finding iframes within the page.

@jyasskin PTAL