Code Search API

I will probably send a PR after this one to fix the Repository Search API so it has a similar return object as the Code Search API.

I wanted to avoid this, but it only makes sense.