clone of http://code.google.com/p/nginx-sticky-module