Cart views sanitize inputs

When someone puts non-numeric `quantity` into an AJAX call to add/update items in a cart the server raises Http500 and sends emails to admins.

I have added sanitization of inputs so that server returns correctly a BadResponse (Http400) and does not bother it's admins.