gitserver: Perform sub-repo checking when reading blob data
Created by: ryanslade
This change performs checks, but currently uses a mocked implementation of our sub-repo permissions checker.
Small changes to the API of the permissions checker were made to accomodate usage in gitserver.