Extract out parsing proto file logic from ProtobufGen

Let's try to eliminate the 'compiler' argument.