Fix null error check when accessing model

Set new ModelJSO and ModelMetadataJSO objects when ModelTree#initialize
is called.  Use DataManager#setModel and #setMetadata only on GET of a
model. This should obviate the null model errors. OMFG.
Set model title correctly in Model tab

Always call Perspective#setModelPanelTitle instead of making other
assorted calls to set the tab title. This is more robust and it makes
it easier to track down errors.
Fix issue with instance parameters not being loaded with model

Another null was being thrown. Added JSO methods to return the number
of parameters and the number of ports in a model component. When using
these, the code that had worked correctly in dev mode now works in
production mode. OMFG.
Don't change save state when tabbing between parameters

Also when using the arrow keys within field.