Polish line items

Line items now add, update, and delete properly. Empty line item is visible for quick add (hide in javascript later, and reveal with 'add item' button). Delete required ugly string manipulation to access the line item's record id. Possible fix for the future, but it works for now.