Added object reflections

stack has many resources
stack has many events
resource belongs to stack
resource has many events
event belongs to resource
event belongs to stack