add as_foreign method to dir and file
rename as_foreign to os
nicer names
convert os to a mutator
document os