removed EventApi->test_connection(), corrected mode switch for api endpoint change, added multiple api endpoint support