Improve example configurations

After digging through the nginx documentation I discovered some awesome features that allow (for example) to password-protect some prefixes, to allow only whitelisted IPs, to serve PHP scripts, etc. I put that all together and I propose to update the sample nginx configuration.

I also added some hints to the sample cms.conf, that might come handy.