basic authentication added for elasticsearch

I added basic authentication for elasticsearch.

Also I created a sample nginx conf how to setup nginx: https://gist.github.com/oroce/8742704