Fixes #12 - missing preferences

Use JSON schema way of declaring config parameters.