Pass back search term from /search page

A little refactoring
Allow for case INsensitive format to be specified
Default return type is geojson instead of HTML
Removed test.html page