Refactored network communication code into a separate package.

* Minimizes code redundancies
* Detaches communication side from the app display side

Open for comments :-)