Moved AST classes to a new package

Also improved the way which nodes store line information.