making `yui.expose()` a  compatible connect and express middleware.