Allow trailer to be rewritten on a pre-existing PDF file as an update.
Also, reorder exported methods in pdf/file.go
Move main() for integration tests into its own file.
Rename "tests" directory to "integration_tests".
Remove several statements that were inserted for debugging and an out-of-date comment.