Move id3 and predate write to before end. Add static option. Don't end early for HEAD requests. Some cleanup.