Add NetworkHandler class
Add connect button listener.
Improve memory handling.
Don't forget garbage collection!