Ports Clean Command to Core

It's all in the title, bro. Ports the clean command to Core and updates the Makefile to get everything to compile as we would like. Addresses #49.
Yeah, all this should be gone. Replace with the one call to `clean_command`.