Fix two deprecation warnings (#456)
Fix two deprecation warnings (#456)

* Fix deprecation warning, use Nan::TryCatch.

Fixes the following compiler warning:

    Release/obj.target/appmetrics/geni/appmetrics.cpp: In function 'void
    emitMessage(uv_async_t*, int)':
    Release/obj.target/appmetrics/geni/appmetrics.cpp:396:18: warning:
    'v8::TryCatch::TryCatch()' is deprecated: Use isolate version
    [-Wdeprecated-declarations]
             TryCatch try_catch;

* Fix deprecation warning, use Nan::CallAsFunction().

Fixes the following compiler warning:

    Release/obj.target/appmetrics/geni/appmetrics.cpp: In function
    'v8::Local<v8::Object> getRequireCache(v8::Local<v8::Object>)':
    Release/obj.target/appmetrics/geni/appmetrics.cpp:597:151: warning:
    'v8::Local<v8::Value>
    v8::Object::CallAsFunction(v8::Local<v8::Value>, int,
        v8::Local<v8::Value>*)' is deprecated: Use maybe version
    [-Wdeprecated-declarations]
         Local<Value> m =
         module->Get(Nan::New<String>("require").ToLocalChecked())->ToObject()->CallAsFunction(Nan::GetCurrentContext()->Global(),
             1, args);

seabaylea/appmetrics,mattcolegate/appmetrics,hhellyeribm/appmetrics,stalleyj/appmetrics,mattcolegate/appmetrics,hhellyeribm/appmetrics,stalleyj/appmetrics,stalleyj/appmetrics,hhellyer/appmetrics,RuntimeTools/appmetrics,RuntimeTools/appmetrics,mattcolegate/appmetrics,hhellyer/appmetrics,seabaylea/appmetrics,stalleyj/appmetrics,stalleyj/appmetrics,seabaylea/appmetrics,RuntimeTools/appmetrics,RuntimeTools/appmetrics,hhellyeribm/appmetrics,hhellyer/appmetrics,RuntimeTools/appmetrics,seabaylea/appmetrics,hhellyer/appmetrics,hhellyer/appmetrics,hhellyeribm/appmetrics,mattcolegate/appmetrics,hhellyeribm/appmetrics,seabaylea/appmetrics,mattcolegate/appmetrics