Lots of fixes to make the Lua integration much easier.

- CCI_Actuator and CCI_Sensor have Lua-specific methods;
- this way, a single controller can manage any Lua-enabled device.

Removed all the duplicated Lua-specific implementations.