Added a nnlayer and implemented initRandParams

Additionally moved all util code into a centralized util.py file.
network.py has been removed since it served no purpose.