Add states to version control.

Adds renamed state for files and directories.
Adds modified state for directories.
Allow directories to have options column rendered.
Rendered directories in flattened mode if required.

Will render directories in flattened mode if their status is not normal.
This allows for renamed directories, or permission changes on directories to be rendered.