Add some filesystem funcs; remove much code

The removed code is being moved to another package.