Filled in more of the navigation code in edit.c, which required adding a couple helper functions in pageCache.c