Ignore failed records when updating solr.

When the script fails to update a work in solr, log the error and ignore
it and move on to next record.
New solr updater script.

Completely rewritten from scratch with simple code and less rules.
Use the same code for both search view and search api.