update nginx and memcached snippets with the format as per #1
add snippets for tomcat and solr