logic improvements

- trim query so that final spaces don’t trigger additional curl
- add asterisk to the end of all searches to almost always get results
- better autocomplete: now keeps categories