Added CHECK_PERMS, ADMIN_WYSIWIG, AUTOCREATE settings and a check whethe...

...r Site is used. Also added numerous unit tests to ensure that current default behavior does not change. Unit tests with alterantive (non default) settings are still missing