Plugin threading 2

This time the pull tries to solve issue #428 in a more generic way. The pull does the same as pull #429 but IMHO more elegant.
However, the autmatic update of the plugin list is not yet implemented (failing at the threading for curses). But there is no need for specific exceptions.