Rearrange includes to improve compile times.

This also allows for memory leak checking on MSVC by having include
surrounding Qt headers, which break if you have a macro define new
to be something which tracks line information.
What the preqt/postqt headers actually do needs to be described, so we know why to use them in future files.