Make net know output blob indices

To make introspection and automation easier, Net now keeps a vector of its output blob indices just as it keeps a vector of input blob indices.