reorganize repository to match indigo, bigcode, etc

Reviewer: trivial

The build system gets a new common makefile and the Modules directory is
renamed to "modules".