Improved Mantis save method. Added HTTP auth options

Added HTTP auth options to pass Kerberos for example. Also optional decode the image attachment data. Seems to differ in different versions of Mantis.