Create API class for plugins methods.

This class has two signals and the Application class implements
this interface.
Refactorize File class implememntation to avoid dependencies with UI classes.