Fixed not-closing ghost inspector.
* Added check for il flag around changeState event.
* Added call to ghost inspector's destroy if il flag is not set.
* Updated tests.
Merge pull request #274 from jaycee/close-inspectors-without-flags

Per the [bug][1], without flags clicking "X" to close the ghost inspector
doesn't work. This is because the inspector only fires a `changeState` event when
the close button is clicked.

This is pretty simple to remedy: the inspector now checks for the il flag, and
either fires the `changeState` event or calls `destroy`, as appropriate.

A test has been added for the no-flags situation, and the current test was
updated to set the il flag.

[1]: https://bugs.launchpad.net/juju-gui/+bug/1315043