Bugfix Repo.browse and add a new 'files' method

Also added support for specifying the path in both methods.

(Note that the response from Repo.browse is not paginated if type=True)