began seperating parser and ast, error codes for bootstraper

Most of the diff shows me seperating js_ast and parser.
I wanted to start doing this since its easier to decouple the parsers that way (before adding acorn support)

Also added in missing functions from application validator that were somehow not in the code base.