Adds unhandledRejection and uncaughtException error handler and some api stuff (#594)
Adds unhandledRejection and uncaughtException error handler and some api stuff (#594)

* Create errorHandler.js

* Remove useless message

* Update errorHandler.js
PrismarineJS/flying-squid