Add endpoint for retrieving a user's queries

Should resolve #77.