Added signed_hash() method to tx, now hash() returns the signed hash if available, unsigned hash otherwise. Added endl after raw tx hex when exporting to file.
Revert to just using tx->hash() since it now automatically returns appropriate value.