[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>
[util] Register constructors inside isolates

Constructors are stored as static class members and ctor created in a
different execution environment overwrites one previously created in
different environment, resulting in different weird effects. This
patch changes the way how environment-wide data is stored: it is
stored now as the isolate data member (struct IsolateContext).

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
Merge pull request #1 from deztructor/master

Fixes in memory management and usage of isolates