Permissions
Cleanup
Cleanup
Cleanup
Remove old mysql functions
Refector old mysql code to new
Merge branch '4.0' of github.com:impresspages/ImpressPages-CMS into 4.0