Cleaning up associations and tidying up Gemfile

Removed Purchase merchant_id column and moved belongs_to to a
has_one through association. Merchant now tracks purchases through items
as well.