Work with typemap

Here's a way of making iron/persistent work with the recent change to use `typemap` for request extensions. I don't know if you already have something else in mind.

It requires the phantom key type to `impl Assoc<Arc<RWLock<D>>>`, which is a bit ugly, but only makes explicit dependencies that were already there.