Updated for Current Release of Mantis

Added support for filesystem-based attachments.
Corrected for past Mantis DB schema changes.

Tested during our migration from Mantis to Trac, these changes should get newer users most of the way there with minimal tweaking.