page infrastructure refactor

This should be the last major restructuring, honest.
flattened page structure.
completely rewrote history handling
added explicit nav to home & details page
cleaned up div naming
added back button handling