WorldServer performance improvements, fix playerinstance patching

Signed-off-by: Ross Allan <rallanpcl@gmail.com>