Modularizing the library since project was getting too big. Also adding LocallyConnectedLayer. Also adding support for both L1 (sparsity-enducing) and L2 regularization of weights. Misc bug fixed I encountered that incorrectly ignored some options passed in by user.