major refactor for mainwindow
Merge pull request #18 from tackle/master

Rewritten mainwindow class to make it ready for sprite/spritestore refactor