foolicensing fixes

moved the init code for foolicensing around so that it hooks up correctly.
small fix for better IIS support for retrieving the IP address in the admin page