Initial project import and split from a-mq bits.