Beginning data structures for syntactic analysis etc.

Also worked on the interface for creating new syntactic analyses.