stocks: add fuzzy search support for stocks, minor refactoring
This change adds a fuzzy-search mode for stocks, allowing a much improved user experience compared to memorizing tickers.
Additionally, command logic was refactored to make for less code duplication. Small bugs were fixed as well relating to holding resources for too long