Move repo and history repo from views/__init__.py to views/repo.py