Overhaul of models and controllers. Fixed inconsistincy with quantities combine form. Fixed api_barcode to be compliant with overhaul.