Finish port of JavaScriptConsole from core to plugin

Change-Id: I12d37ffe504d6d9718d51ab957cc4a9d96919a66
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>