Remember added repository indices and refresh them on update

Fixes #264