How to have a custom site provision websites ?

Hello,

I'm hosting my sites at omega8 and I've been provisioning them through the regular hostmaster site.

I now would like to use a custom website in order to provision and manage my websites (create, edit, delete, flush cache, disable, add/edit/delete aliases etc...).

I've been in touch with omega8 support team and they told me all of what could be told over support mails, I guess now my questions are getting out of the scope of support requests and since I can't find much documentation on precisely what I want to do I'm asking it here: What is the architecture I should put in place in order to have my custom website call the right API functions to provision websites ? Also can I have it made in a way that the regular Hostmaster site sync with my website (in case I want to implement tasks incrementally and still have a full control through hostmaster ?)

Any help would be highly appreciated!

Thanks.