removed var names from prototypes
make global variables static
fixed compiler warnings
checks for file type part of mode
removed access(2) call

access(2) checks permissions using real UID/GID instead of effective.
This patch allows using sudo and similar programs.
lsnode_t moved to node.h
refactored parser