Implements upload and import of coupon codes

I've seen that the code whole contains mixed tabs and spaces. This should be fixed in a separate PR to keep this one clear