merge

-I moved getHandle() and setHandle() implementation to IHasHandle.
-I added a check to send just global objects over the network.
-lastAllocatedIndex initialized with -1 to not insert a null pointer in the first position.