Refactor.
Fixed up solr record script and rake version problem.