[mips] Splitting up class definition from implementation.

Also removed some unnecessary #includes.

No functional changes.