Fixed not dieing in vehicle, optimizations.

Will now die in a vehicle.
Fixed entities not having properties applied when spawned in space
Optimized some code. My local servers cpu usage dropped considerably in
my tests.
Changed gm think to tick
Synced states of entities to new players. Will use similar system to
sync all devices updates in the future to save on network usage.
Moved most server side networking to a separate file.
Merge pull request #6 from MorgenBlue/master

Some bug fixes and lots of network optimizations.