(WIP) Cdodge/shopping cart rewrite

Why not import at the top of the file?
Also, consider moving `save_registration_code` into the shoppingcart app?  Does it fit more naturally here, or in `instructor.views.api`?