Cleaned architecture of pages

This commit provides a massive cleanup of the
paging system. It should also correct a lot
of segmentation faults that used to happen
sometimes.