Code cleanup in solr.sh.
Added Access-Control-Allow-Origin * to the nginx config for the Magento skin folder.
Added function pass to lib/function.extends.sh which helps disabling extended function bodies.
Delete everything in SOLR_HOME/* when installing solr.