Currently, there is no supported way to automate the registration of the K2 App. This is not a K2 requirement, but a SharePoint 2013 requirement. If you go to the link I have provided, it explains further on why you need to manually add the Appit app to each site using SharePoint 2013's app model.