Redirects were being made to a specific url (->toUrl('/cart');) rather than using the routes and the URL helper (->toRoute('cart');).
Merge pull request #8 from shipleyr/bugfix/route-forwarding

Redirects were being made to a specific url (->toUrl('/cart');) rather t...
Update to include oustanding PR's
Added a return to the addCartItem function to return the cartItem object that has been produced. Reason: I want access to the cart item id of the freshly created cart item and without this there is no way to obtain the id of the freshly created item.
Reconfiguring a product in a cart was leaving orphaned child items in the DB table. This @fixes #5. It depends on two other PR's
https://github.com/speckcommerce/SpeckCatalogCart/pull/3 and https://github.com/speckcommerce/SpeckCart/pull/28.
The flat options only seem to be getting applied to cart item metadata object if the item being looked at is a Choice object. I have need to access the flat options at the top level of the cart items so I have inserted it into all.
Detect duplicate items in the cart and increment quantities