Add real referential integrity to our database.

Add the foreigner gem as a requirement, and add appropriate foriegn_key
declarations into our migrations.