moved lib/executor.js to gate-executor