Converted AppOptions to plugin.

AppOptions was removed from the core to an included optional plugin.