Refactor: removing duplicate code.
Fix timeout error while showing the very large repo like git repo.
Fix travis failed randomly by timeout.
Fix spec errors.
Merge pull request #3252 from hiroponz/fix-timeout-large-repository

Fix timeout error while showing the network graph.