[api] add "addchannels" api call, which does copy matching channel packages and repositories