Removed redundant calls, changed some hasContent calls for new signature, and added initial implementation of layout caching
Refinements to setContent, added setPageContent in preparation for slow loading caches
Made layout caching be more compact by keeping references to the original content where easy
Minor API rearrangement/renaming
Added cache limit for layouts, fixed some typo/bugs
Merge branch 'master' into cachingcodex
Fixed some small bugs with codexlayout for Firefox
Merge branch 'master' into cachingcodex
Did merge
Merge branch 'master' into cachingcodex