Add function to get the weight of a container to lua script

This should add a Container:getWeight() to lua script.
Hmm, that's a nice idea. But this could take a very long time to adjust in the entire server. I don't have the code inside my mind like you have, but I think there's many places to refactor.