Add most of "remote add"

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>