1049 update

Adding Mercury in a way that can be merged now. More to come on removing `primary_extension` dependency.