Multiple output plugins

ATTENTION: Do not merge yet, it is still open for debate.

Solves multiple output plugins. As the subprocess PR was not accepted, the commits from that PR are still here.