Clean up rows in application model when model is cleared.

Remove signal handlers for getting notified when menu items has changed. Otherwise we might get notified for "dead" model data.
Unify coding style