Fixed a possible NPE

At the accept operation the "accepted channel" was being configured before the null check which could of caused a NPE if serverChannel.accept() returned null.
Merge pull request #1 from JimmyFrix/patch-1

Fixed a possible NPE
Updated networking majorly.
Redid the bindings for networking configuring via scripting.