status.h: Move directory parsing out of main.c

 * This patch cleans up status.c by moving
   the functions that are related to directory
   parsing out of main.c.
 * It also removes some functions that have
   become obsolete.
Change status command

 * The status command now returns only
   changed files and file that are not
   currently tracked in the object store.