upgrade to pig 12

Large swaths of code changes in Main; tests pass, test_local renders