Pass II

- Made both inputs and filters pluggable
- Add stdin input
- add stdout filter
- add debug filter
+ some superficial testing.