Fixed API and moved farm_control.lua to examples