Refactor frame link to allow override of document.

The freedom-for-firefox backgroundFrame alternative can be greatly simplified by allowing just the document property to be overridden, instead of trying to keep the ```makeFrame``` and ```setupFrame``` functions synchronized.