TODO:
- Test that vertice is deployed as common JS module and has all the correct fields (module, exports etc)
- Test that start and stop are called properly
- Implement async start and stop (maybe can pass in a function as a variable to the script)
- Test the docs are generated properly
- Test the require function properly
- test exceptions are propagated properly
- Convert Java exceptions in AsyncResultHandlers and when thrown directly into JS Error objects
- Test indexsetter and getter
- Smoke tests (e.g. http server, net server)
- Rewrite/improve the require function. Make ssure better error messages are provided.