Distribution style packages

A first attempt, needs some work.