Require authentication for git/info/refs. Also fix a bug that
there is an exception when user browsers an empty project.