Made record actually save the json...
Switch network over to be class based; added train method and implemented auto generation of input_node size