Lots of things: added rename_to, copied more docstrings from fileutils.py, and a few minor bugfixes