Made mineshaft importable and composable
Use events rather than polling