Allow insert into arbitrary locations in series file.

The previous code would always append to the series file new patches
regardless of where they actually should have gone. The new code uses
`parent_patch_name` to signify where in the series a set of patches should go.