[lib] destructor for handles returned by objToV8

otherwise there is a memory leak

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[core] choose isolate on registration

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
master pointer for QJSEngine in actor

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[actor] allow also null as request callback

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
invokable methods are public

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
link core with dl

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[env] global js readline() function

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
dynamic debug output

Can be enabled by setting CUTES_TRACE environment variable to non-zero

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>