SchemaRegistry singleton.

Schema registry moved to app to enable reloading.
Configuration moved to config.js.