LOCSERVICES-4350 Update locator news responsive component to support a setPersistence method

This task covers:
- adding a set persistence method
- fixing any scoping issues
- escaping search and auto-complete strings

There were no tests for main.autoComplete() so I have added a single test that also covers escaping.