Allow external home script to access landing URL logic

*Incomplete* code
This patch will allow a new site entry file (like extract2.php)
to access the redirect logic direcly without going through the
regular page rendering.

Change-Id: I648ec8d5cfa52ce0fffdfc82e471a987be471cac