Expose main App to externalPlugin call.
Added apiversion field to main App (starting with 1.0).