PHP functions for the directory structure

First version of the functions that will list the directory we want to
share. Actually only works for one directory, no sub-directories.
Detects them but cannot navigate. The main page has been update to show
the info recover by this functions.