Code cleanup of ControlFactory.

Regenerated lua bindings.