So, now that I have been hacking away, here is what I am working on.
The first aspect of setting up a Sugar App is parsing some command line arguments. The arguments help configure the app so that the Sugar Framework can properly interface between the App and the X server. Or something like that. These arguments are:
Identifier of the activity bundle. Must be made available as window property.
Unique identifier of the activity instance. Must be made available as window property, and is used to create the D-Bus service.