Added linking, directory creation, directory changing, and some tests for these.