I implemented the World function to receive two functions, one to build the world and the second to dispose it (optional).
Both functions are then called by the corresponding RhinoBackend#buildWorld() and RhinoBackend#disposeWorld().
World function implemented properly
Merge branch 'master' of https://github.com/cucumber/cucumber-jvm
World can now receive both a build and dispose function
Attribution for #595