Always use getByIndex for WindowModel because get is not available

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
When a window is removed and was the active one, make sure we go back to cardview mode.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Merge pull request #72 from webOS-ports/tofe/architecture

Tofe/architecture