OJS routes URLs through the page Handlers, but after that the inclusion of the various classes and the output of templates is arbitrary.
For some example walkthroughs, see:
And: