Move away from algoliasearch.js and autocomplete.js

These libraries are huge in comparison to everything else in our code base.

We should be able to implement the needed functionality ourselves in a much more efficient manner. Not critical though.