Implemented file delete function.

Improved Action framework.

Many changes throughout.