Compiles a BEL document into a proto-network.