I/O development and tests.

Implemented inputs and outputs. OPC tested.
macarena 3
Merge remote-tracking branch 'origin/dani'