Added a linear layer, refactored layers stuff, fixed l2 regularization.
Refactored cost function to allow for BP-MLL later.
BP-MLL implemented and works somewhat. Hard to pick hyperparameters though.
Implemented a kind of compromise between softmax regression objective and BP-MLL in an attempt to get the best of both worlds. Works well so far.