Move page split code into rec_split.c source file.

Some related function renaming. Also a bug fix from the previous commit.