Common functions: Fix browser detection code.
Collection: Dynamic page content: Support for history states.
Merge with mercurial branch.