After getting tired of reinventing the wheel over and over I sat down and figured out how to write LaTeX document classes and wrote one suitable for typesetting assignments and exams that handles the formatting, titles, and cross-referencing in a nice way and is easily extensible: mqassessment.zip.
Updated: changed lot of the internals, improved the formatting and added
some options, see
example.tex for details.
Updated Apr 2015: changed to the new MQ logo and matching fonts - mqassessment_v2.zip