Added nessecary components for a WndProc.
Spring cleaning! Refactoring of systems and various improvements.