Register mediators

Closes #147 

@rcrichton if you could please review?
Ok I agree. It seems that we need to think about this more. Could you create a new issue for the updates?