refactor front index

Restored data_index for all pages for plugins that use it.
Added failover for missing 404 files.
fixes #548
fixes #537
fixes #551

Added page edit title and footer
Merge branch 'hotfixes' into stable