Added mining.set_difficulty support & fixed generateoutputtransactions