separate mint out into mint and mint-impl

@andreistefanescu please review