Ast switch out

Pulled out the AST generation from the scan.js - scan function. There is also a way to set another parser than acorn. It should solve issue #155
Very intense nitpicking: the `SomethingToFoo` variable reminds me of conversions (like `toString()`, `toNumber()`).
I think `parserName` is a good more intuitive variable name.