Extract site_parse() function from site_generate().

Also move transformation of sitedef parse tree into ast out of
sitedef_parser.c into site.c.