changed to use the embedded lua in redis, this saves having to make multiple calls
finished refactoring to move code out of nodejs