Allow configuration of the function used for parsing

By default, use `require("esprima").parse`, as before.

Closes #15.