Register mediators

Closes #147 

@rcrichton if you could please review?