refactor plugin activation code to remove code duplication

Also previously TaskMultiplier plugins could not be disabled due to
a small oversight.
Merge pull request #1446 from FelixSchwarz/refactor-nikola-plugin-loading

refactor plugin activation code to remove code duplication