Improved relative-position compatibility

Every static link to a page has been replaced with a relative path or a
dynamic absolute for external callbacks.

In addition, an header-body-footer pattern was added for the
display_template() function in order to maximize code reusability.
Filing down last commit