Emiller's Guide to Nginx Module Development - http://www.evanmiller.org/nginx-modules-guide.html