replace Server smart pointer with conventional one to gain control over dtor call order
fix memory leaks introduced by invalid gettext usage
fix inventory image texture leak