Add Makefile for automated building and restructure directories

At long last, here's the fabled Makefile patch.