Added feature to sync repository.

Added feature to sync repository (`git pull --rebase && git push`), it doesn't work yet because I need help understanding EventsEmitter I think...