Massive file sorting in preparation for ACPI / Makefile integration

I'm about to write a makefile for the project. To do this, I'm going to
have to sort out every file by function.