Refactorized and fixed metadata phase update:

 * Do not change phase if newline was inserted
 * Change phase if text was eliminated
Added undo/redo for inline metadata modifications
Update defect's line number automatically:

 * New NotifyModification method to track line number changes
 * Store the line's uuid in the defect (PSP module)
 * Call NotifyModification from the Editor module
Track line's uuid in breakpoint and folds (task context)
Postpone row deletion in database (sqlite locking workaround 1)
Postpone row insertion in database (sqlite locking workaround 2)
Minor refactor to update UI when defect changes (ie. lineno)