Update index.php

Fixing ShortTag call for footer.php, adding a APP_KEY define to make changing out app_keys easier.