Refactoring main qt module. Moved popup menus initialization to separate...

... methods, simplified inbox loading and moved magic strings to the model scope constants so they won't be created every time.

P.S. Github shows some changes as an indentation changes, but in fact that is splitting popup menus code into methods. Please look carefully.