Fix require to work like most people expect.

Also remove server object from plugin
Revert "Fix require to work like most people expect."

This reverts commit efa4fecadb81eff38de1fb4f060d0e86ea050ebd.
use global Server object instead of server_extra