Fix for SOLR-4557, fixes for reload testing. Also made a series of changes to make reloading cores more robust

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455606 13f79535-47bb-0310-9956-ffa450edef68