Implemented sigmoid function and its gradient.

Added a network.py that will be filled with bootstrapping code serving
as the entry point into the library.