Moved some more functionality to network.py and added BinaryStochasticLayer to layer.py