moved giant nested if to table lookups
Merge branch 'master' of github.com:Olivine-Labs/lusty-nginx