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
fixes #552

undefined var $log_data
Merge branch 'hotfixes'

Conflicts:
	admin/edit.php
	admin/template/css.php
	admin/upload.php