Newer elasticsearch, bugfixes

Bumped default Elasticsearch version to 1.3.2. Java 7 is now required, and some tests had to be adjusted.
Fix bug in username not being used in tests because it was wrong in /etc/nginx/htpassword.curl.
Fix bug where port 443 was not open in iptables.