Primary ID force for remoting api on insertion of new objects
Patch based on the thread here: https://www.howtoforge.com/community/threads/add-site-with-specified-system_user-via-remoting-api.77236/
Basically, when a new object (primarily site) is added via remoting, this patch allows to specify the primary domain_id of the site and following sys_userid and resulting path.
If a _primary_id is passed in the $params array, then this is used on the SQL insert operation. If a same id exists on the system, an error will be returned (mysql error for duplicate primary key value).
_primary_id is only available in the remoting api and is not found in the standard $forms of the app.
Based on implementation idea by @tbrehm