More work on paging

Cleaned up paging code, seems to work properly now, still needs cloning and
Copy On Write implemented, and proper frame management added.
Cleaned up code to satisfy Clang

Clang has stricter warnings, so various changes were made to accomodate
them, should now build properly in GCC and Clang.