Factor out common methods

A number of pages now rely on session IDs, so we pull this out to the
Common implementation, as well as the method to overwrite the "Voting"
and "Results" links to use the session ID.