Model relationships

Basic framework for bases, recipes, and barcores. Need to add form details for relating them. I think this is enough for one PR though =)