cleaned up the gantt chart generation to make sure multi-page charts worked

Resolves http://bugs.web2project.net/view.php?id=1257 and a bunch of
others

Conflicts:
	modules/tasks/gantt_pdf.php