add a parameter in json config

use ios_per_thread to indicate if io_service would be created for every
port