Add 'delete' methods for units and lease terms. Fixed bug with adding new lease terms.
Reapply my changes to update_unit.php to Rich's earlier revision.