Failed to contact PhEDEx (getoutput, getlog)

Sorry for this, but in previuos pull request was everything fine. But as a last test I was doing every time getoutput and getlog with all possible options of transfer.
After jobs started finishing, in one time I got that output cannot be encoded from PhEDEx in another everything succeeds. (T vs F in output parameter)
This pull request fixes:
a) For old tasks use the same outtmplfn as outlfn
b) Order correction in Filemetadata and added comment for future
c) More debugging information.

@mmascher @AndresTanasijczuk I have tested this on my private VM with Logs=False, Output=True and it works. Can someone of you test it with Logs=True/False and Output=True/False and give green light?

Also everything about CrabServer and interections with it from Client/TW/WN looks ok, except this getoutput and getlog. Will update validation twiki later. Almost ready for production ;)