Search Functionality (somewhat)

Still need the basic patient finder patient page to redirect to from the
search, for the moment using that old patientview page. Also started
re-including footer.php which now only contains </div></body></html> for
consistency with panel.php
Some other stuff too, but that isn't important atm