P0 pass now defines and resolves most symbols properly.  Added P0.add_name and define_name helpers.  Wrote P0.resolve_symbols.