Frontend driver skeleton; refactoring common machinery into common/.