Implement rename()
Merge pull request #2 from tgeorgiev/rename