Implemented plugin manager. Closes #178.