Add a simple ObjectId generate function
Add simple reply function to sub client and some other util change.

Add a simple random generator for random int less than LONG_MAX.
Add server shared struct.