readded partial checkaccess handling from original code (needed login page when guest accesses pages that need authorization)
removed unneeded commented out lines
fixed page access and localization detection
Merge pull request #21 from KaiHerzog/checkAccessHandling

readded partial checkaccess handling from original code