Implemented functions:

* mkdir
* rmdir
* symlink
* rename
* link
* chmod
* chown
replace some boilerplate code with macros