TM: Initial support for local TM

Add a TMUnit model and store new/updated units in the TM when they are
saved.
TM: Add support for querying local TM
TM: Add local TM support to the editor