API: Change docformat, add format option to query()
Frontend: First draft of better typeahead