Completed the first draft of the grammar, minus parser actions.

Also moved some of the pass files around.
Fixed some typoes in some palces.