Extract NmsHandler loading to its own class

Changed the version of the nms handlers to be its own internal version counter. This means that old handlers will only be invalidated when they won't work, not just on version bumps.