split out the page dirtying to its own file.
include cleanup
change the page dirtying code to use function pointers.