Add Dir#mkdir and Dir#rmdir

This pull request adds Dir#mkdir and Dir#rmdir and everything around it to make those methods work, including a ModeT alias and an Int#to_i(base) so it's easy to convert from decimal to octet used for the mkdir mode parameter.