Restrict selectors in requests

No hidden files and directories; no relative selectors.
Rename IT_UNKNOWN to IT_IGNORE
Ignore symlinks
Check rights before listing items in menus
Call magic_close even if an error occured