submission for adam wong

I'm not sure of your git practices so I've left these commits unsquashed. If you'd like, you can see the places where I had to change directions when my initial attempts failed.

to run tests, ```bundle install```, ```bundle exec rake db:create db:migrate``` and ```rake```

While there are quite bit of boilerplate, I would look most specifically at the purchase_controller_spec, purchase_spec, and csv_upload_spec