New Option: "beforeOpenCallback" and "beforeOpenCallbackArgs" - closes #334