Allow sync manually, instead force sync at ever login

Sync moved to helper, can be called from login and manually from api
I was thinking we could put the `sync` button on the repository list screen. This way if someone is searching for a repository in the list and cannot find it, the sync button will be right there.