Docs: Add documentation for Command and JavaScriptCommand.

Change-Id: I21093165f92e96badf7a71eb631caab40e71ed9a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>