refactor: link handling, sorting, colorType(), etc

* directory sorting is done by checking if file is dir, then symlink
* cleaned up colorType() massively
* cleaned up link handling in stat()
* name() supports MISSING now
* etc.