Minor wording change on the add line item form submission.
Minor cleanup

* Move a bunch of grid initialization logic into separate files.
* Improve validation a bit for new line items.
* Some doc / code shuffling for better readability.