Fix and clean file implementation.

I have moved the part of state modification to the file class
and changed the signals calls.
Only display recent files which exists.
Implement change state action and button.

This closes #37.
Remove editor boxes height calculation.