Revert "pymongo replaced with Motor [TODO: fix WI]"

This reverts commit 51bbc9995c072470cd52fac9529ecab5ab5018f8.
Enable logging for the web app
htags typeahead workaround