Implements directory_delete

Tested on XLIB and Win32

Unit test included.
https://www.dropbox.com/s/4o8aaq7p4szbwiw/dirdeletetest.gm81?dl=0