Api: allow recursive tree request

As i've suggested in http://feedback.gitlab.com/forums/176466-general/suggestions/6661459-api-allow-recursive-repository-tree: added a parameter in tree request to get a recursive tree and path attribute in response.
Perceived complexity for initialize is too high. [11/7]<br>Inconsistent indentation detected.