Small pep8 adjustments

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Get ride of the do_ functions in the repo controller

Just put the logic in the same method as the routing one

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Move the logic for the doc from the do_ method into the routing method

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Move the fork related logic from the do_ methods into the routing methods

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>