Initial write of ptw_file_append

Currently only writes integer frames, and no tests written yet, but the logic is
all in place to write frames to a file.