We don't want to reimplement already-installed-, egg-problem- and other logic in multiple places, so centralize this in octoprint.util.pip and also add a test suite. already-installed-logic has also been updated to solve #4363 by now checking if there's been a successful result line and if not if there's been an "already satisfied" line, which should work more universally across pip versions. Closes #4363