Web gaming engine which transparently syncs entities between client and server