[buffer] Use NODE_CTX_V4 macro where possible
[engine] Implement unified exception handling mechanism

Now EnginePrivate provides exceptionCheck method, that has to be called
every time an exception check is needed. It takes care of firing
Engine::quit() signal and printing exception stack trace.
[nodeqml] Handle Engine::quit() signal
[buffer] Minor refactoring