Add support for repositories hosted on gitiles.

This currently only has *.googlesource.com whitelisted.

gitiles has a few quirks, all JSON replies are prefixed with ")]}'\n" and
there's no endpoint to retrieve a raw file, so manual unescaping is currently
done as a poor man approximation so parsing can be done.

Was slightly tested on the live server, may still contain bugs.