working on file functions
conflicting function name with delete_file now delete_page ( what it actually does )
changed return 'success' to bools
more string returns to bool conversions

sendemail
delete_bak
added fileio logging few fixes
work on backup and restore functions

refactored components to use new functions
replaced all native file io with wrappers

added new functions
clone_page()
chmod to gs_chmod & fixes #895
replace file_get_contents with read_file

added getPageXML() shortcut
getnextFilename

abstracted getnextFilename
more abstraction

replaces all file extension to getFileExtension
some file getters refactored
fatal fixes
xml loading cleanups
Merge branch 'master' into feature_896_fileio
Merge branch 'master' into feature_896_fileio
Merge branch 'master' into feature_896_fileio

Conflicts:
	admin/changedata.php
	admin/inc/template_functions.php
fix for page_delete return added option backup param
Merge branch 'master' into feature_896_fileio

Conflicts:
	admin/backup-edit.php
	admin/changedata.php
fix getDirs
fixes clone_page
fix slug change errors
Merge pull request #921 from GetSimpleCMS/feature_896_fileio

Feature 896 fileio refactor, massive rewrites, tons of new functions, fileIO logging