Add integration tests to the repository browser

I believe this covers all the features of the browser except for:
* viewing a non-text file
* uploading a new file

There is a TODO makers for each of these features, and I hope to
re-visit them in the future.