Refactor first record upper record delimiter
Refactor first record upper record delimiter

Instead of checking the last line of the file every time, just write the
initial record delimiter after the header section when creating a new
file. Much of the last commit was reverted to make this change.

jazzhead/log-page,jazzhead/log-page