made code style changes and api changes for app attr in rcube_plugin and rcube_plugin_api