refactoring:
- move pluginfactory into its own file.
- add separator comments.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>