Initial UI and Network implementations

Partially tested UI functionality.
Network library re-written.