Linked onpopstate/navigation links to new loadPage function.

Content dynamically loads onpopstate depending upon what the URL
pathname is.