Fix routing information.

The routing was completely reversed and buggy. It should be done by
output instead it was done by input.
Check if we are talking to Videohub device.
Add -m / --monitor parameter for live configuration monitoring.
Locks are per output not per input.
Use couple of -v / --verbose parameters to increase logging verbosity.
Enable parsing of several commands in single buffer.

It is not guaranteed that each command will come in it's own buffer. In
fact when several changes are made at once the commands are not separated.
Add support for exclusive and non-exclusive locks.