Bug 997045 - Cannot focus on input field when doing element.click().
 - Add a focus parameter to switchToFrame().
 - Make the paramater "options" as a structured object instead of a
     boolean.
 - Add unit test for this change to switchToFrame.
Merge pull request #111 from RudyLu/Bug997045-switchToFrame_withFocus

Bug 997045 - Cannot focus on input field when doing element.click().
r=evanxd, gaye.