refactor front index

Restored data_index for all pages for plugins that use it.
Added failover for missing 404 files.