Rework on apy_address (2nd stage)

Changed the 'apertium_apy' command callback to make it parse the arguments according to the new format (order<optional>,address,port<optional>).
Fixed a problem with the 'apertium_pairs' command where it wasn't taken into account the number of pairs returned and not enough memory was reserved accordingly.