Upgraded to 1.9 API.

This is a first round at upgrading File Tools for the 1.9 API. It is not fully tested.

The only major item remaining is to fix the upgrades.