Allow links to variables in other pages. Yet again refactor the page change logic.

R=efortuna@google.com

Review URL: https://chromiumcodereview.appspot.com//139783009