refactored neural net code to unify the 3 different network components
we've got so far. Put all of them in a module.

realized that we can actually let theano do the gradient work on the
vectorlayer, removed a lot of python-based matrix operations, runs faster
now.