Kill the old with fire and build it from the ashes as the Phoenix rises. It will be great again!
This is a very large issue. I'm going to be reading through the entire RFC Documentation (RFC 5545) to sketch out and document the entire object model I'm going to create for this. That's right, it's time to object orient this project good.