[classlib] Re-added destruction handler

[classlib] Fixed registerElementClass always throwing an error
[classlib] Moved oop.prepareClass("Weapon") to client-only section