Added association creation

Lots of placeholder stuff and messy code, but associations are now
validated and added correctly logic-wise and not-so-correctly visually.