Updated JSON bibliography completion.

As mentioned in #75. It's not perfect - you only get one chance at entering your search terms, for example, and it doesn't currently support searching dates, but there we go.

The json keys it checks are controlled by the string_matches and name_matches variables.