Some more work on lua -> JSON serialiser. Added serialiser to server. Fix warnings in cJSON and lua. Removed ResolveHostname stub