Feature: select iframe by index

Allow iframe declarations to use an index as well as an id selector

This adds a couple of methods that deduce the correct element and scope selectors, depending on whether an integer is passed in or not.