Adds option parameter to line_items api controller

resolves #5655

LineItemsController class_attribute
prevent update on empty options

fixes #5672
Fix vendor gitignore.