make search aware of past setting

Currently, search pagination links aren't able to take you to pages with past events. Likewise, clicking the search link on the index page doesn't take into account past settings. This Pull requests provides a temporary fix for these issues. A bit of spaghetti, so a better overall solution might be left for a refactlatlon.