Fix invalid index errors
Login and logout redirection now works with subfolders base_url
Fix #1
Minor refactoring
Enabling meta mode for privates folders
Fix #5
Fix #2