add railtie for middleware loading
load railtie if rails is present
use correct name, load middleware at initialization time