Added in neuron code.

Still to be refactored quite alot, not sure if a hashmap is the best way
to do things, might try set max connections and deal with arrays
instead.