Added autocomplete endpoint that responds with json

This will return a list of possible completions as json