Add InputOp and OutputOp interfaces

See issue #26.
Make Function extend InputOp and OutputOp

See issue #26.
Merge pull request #27 from imagej/input-output-ifaces

Merged. Thanks again @ctrueden