Remove ununsed variable 'passwd' from ctx

Signed-off-by: Kare Nuorteva <kare.nuorteva@reaktor.fi>
Simplify ctx struct and remove cookie_config

Signed-off-by: Kare Nuorteva <kare.nuorteva@reaktor.fi>
Move variable and function declarations to top

Signed-off-by: Kare Nuorteva <kare.nuorteva@reaktor.fi>
Replace C type with Nginx type in request_url

Signed-off-by: Kare Nuorteva <kare.nuorteva@reaktor.fi>