IRSA partial refactor; changed tests and polygon parsing substantially

Just following up on PR lpsinger#1.  Sorry about the excess.  With this added, I think tests will pass and we can merge onto master.