Use #to_prepare instead of initializer on engine config

With this, it will avoid losing the include when the app is reloaded in
development mode.