Add history for radios

- Radios reinstation uses the same functions as checkbox reinstation so generalise restoreCheckboxes to restoreBoolean so they support both.
Basic tests for repopulating the search form

Test the functions involved with repopulating the form when a window.popstate occurs.
Listen for return on text inputs

Listen for return on text inputs and update the search results when a return is detected.