Do the log insert in a background thread to improve interactive performance.
Add a FIXME.
Use the project id from the project instead of the line item.
Some refactoring of LineItem.