Fix view features based on embedded or component mode.
Fix view features based on embedded or component mode.

Fix view features based on embedded or component mode.   Use the following specs:
`kLockThingsDown` is true if we are in `componentMode` (or could be set elsewhere)
-select component after it is rendered (only done if we are in `componentMode`)
-allow minimize (not allowed if `kLockThingsDown === true`)
-allow closeBox (not allowed if `kLockThingsDown === true`)
-allow undo (turn on if we are in `componentMode` or 'embeddedMode`)
-allow redo (turn on if we are in `componentMode` or 'embeddedMode`)
-allow drag (not allowed if `kLockThingsDown === true`)

concord-consortium/codap,concord-consortium/codap,concord-consortium/codap,concord-consortium/codap,concord-consortium/codap