URL backport from improved company version
xml.php already required by pageelements.php
Allows to define custom urls for login and logout redirection
removed unused functions
removed unused files