Separate computing candidates from displaying them to get rid of some
flicker (#380).
Separating functions for computing/rendering matches, bugfixing - #381.
Small cleanups - #381.
Merge branch 'jaroslawr-master'