Bug 971775: move mozilla buildmaster common stuff to a new toplevel class, eliminate some redundant includes; r=Callek