Updated data structures to more accurately reflect relationships
Added events
Changed some values to enum/flaggable (bitfield) integers
Added gems for bitfields and authorization