Hide Cart on Empty. Functional tests for AJAX requests

Made the Cart not to show when it is empty and wrote functional tests for the AJAX calls to create line_items.